home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #2 / Monster Media No. 2 (Monster Media)(1994).ISO / bbs_util / bcrc106.zip / SCANFILE.BAT < prev    next >
DOS Batch File  |  1994-05-25  |  2KB  |  34 lines

  1. REM SCANFILE.BAT for WILDCAT! 3.0+ BBS System!
  2.  
  3. REM  NOTE!   DELETE ALL COMMENTS AFTER THE ; 
  4.  
  5. CD\WC30\WCWORK\NODE%WCNODEID%            ;Change to NODE Directory
  6. if exist scanfile.bad erase scanfile.bad ;ERASE Scanfile.bad if exists.
  7.  
  8. B-CRC %1                                 ;Run B-CRC on Uploaded File.
  9.  
  10. IF ERRORLEVEL 1 GOTO NOGOOD              ;If FAILED GOTO NOGOOD Section
  11. D:                                       ;Change Drives
  12. cd\new-B                                 ;Change to B-BUILD Database DIR
  13. B-BUILD %1                               ;Run B-BUILD to add file to database
  14. C:                                       ;Go back to C Drive
  15. CD\WC30\WCWORK\NODE%WCNODEID%            ;Change back to Node Directory
  16. GOTO GOOD                                ;GOTO GOOD Section and run CATSCAN
  17.  
  18.  
  19. :NOGOOD                                  ;This is the NOGOOD Section for
  20.                                          ;Failed Files
  21.  
  22. COPY C:\wc30\all.ok c:\wc30\wcwork\node%WCNODEID%\scanfile.bad
  23.                    ;Above -Copy Dummy file ALL.OK to Scanfile.Bad to Fail
  24.                    ;Upload in Wildcat! Make any file and call it ALL.OK
  25.                    ;if you do not have one. This in nothing but a 'puck' file.
  26. GOTO FINALLY       ;Go to Finally Section which exits batch file.
  27.  
  28. :GOOD              ;GOOD Section - File is OK so lets run CATSCAN
  29. CATSCAN %1
  30. IF ERRORLEVEL 1 COPY C:\wc30\all.ok c:\wc30\wcwork\node%WCNODEID%\scanfile.bad
  31.  
  32. :FINALLY           ;Section to EXIT out of this Batch file.
  33.  
  34.